<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=1.0, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ['星期天','星期一','星期二','星期三','星期四','星期五','星期六']
        var mydate = new Date()
        var week = mydate.getDay()
        console.log('今天是' + arr[week]);
    </script>
</body>
</html>